Optimal diet